package com.youth.orderservice;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

@EnableFeignClients     //feign远程调用，在调用端的启动类上加上注解
@EnableDiscoveryClient   //nacos注册
@SpringBootApplication
@ComponentScan(basePackages = {"com.youth"})/*扫描指定路径下的类到spring容器里面*/
@MapperScan("com.youth.orderservice.mapper")
/*@MapperScan("路径") 可以替换dao层，在每个interface上面添加@Mapper注解 */
public class OrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }
}
